import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  let attrs =  { expires: 7, path: '/' ,domain:'.wncinema.com'}
  return Cookies.set(TokenKey, token,attrs)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
